#define _CRT_SECURE_NO_WARNINGS

#include "List.h"

void test()
{
	ListNode* plist= ListInit();
	
	//ListPushBack(plist, 1);
	//ListPushBack(plist, 2);
	//ListPushBack(plist, 3);

	//ListPushFront(plist, 0);
	//ListPushFront(plist, -1);
	//ListPushFront(plist, -2);

	//ListPopBack(plist);
	//ListPopFront(plist);

	//ListNode* pos=ListFind(plist, 2);
	//ListErase(pos);

	bool flag=ListEmpty(plist);
	
	if (flag)
	{
		ListPrint(plist);
	}
	int size=ListSize(plist);
	printf("%d\n", size);
	
}

int main()
{
	test();

	return 0;
}